package controllers

import "github.com/gin-gonic/gin"

type UserController struct{}

type UserInfo struct {
	UserId   string `json:"id"`
	UserName string `json:"name"`
}

func (u UserController) GetUserInfo(c *gin.Context) {
	userInfo := &UserInfo{}
	userInfo.UserId = c.Param("userId")
	userInfo.UserName = c.Param("userName")
	ReturnSuccess(c, 0, "sucess", *userInfo, 1)
}

func (u UserController) GetList(c *gin.Context) {
	ReturnError(c, 4004, "没有相关用户信息")
}
